<template>
    <miliu-autograph v-model="isCanvas" @complete="complete" @back="back"></miliu-autograph>
</template>

<script setup>
import { ref} from "vue";
import {navigateBack} from '@/utils/routerSkip.js';
import { useStore } from "vuex";
import miliuAutograph from "@/components/miliu-autograph/miliu-autograph";
    components: {
        miliuAutograph
    }
    // 打开、关闭 签名组件页面
    let isCanvas = ref(true)
    let store = useStore();
    // 确认事件
    const complete = e=>{
        // 返回本地生成的base图片路径
        store.commit('addFormDataInventory',e)  //addFormData是vuex里面定义的，需要自己修改名称定义使用
        navigateBack()
    }
    const back = ()=>{
        navigateBack()
    }
</script>

<style lang="scss">
.setclass{
  width: 100%;
  height: 800rpx;
}
</style>
